import Vue from 'vue'

const components = [
    'CircleShape',
    'VText',
    'VButton',
    'Group',
    'RectShape',
    'LineShape',
    'VTable',
    'VChart',
]

components.forEach(key => {
    Vue.component(key, () => import(`@/custom-component/${key}/Component`))
    Vue.component(key + 'Attr', () => import(`@/custom-component/${key}/Attr`))
})

const svgs = [
    'SVGTriangle',
    'SVGDianya',
    'SVGResistance',
    'SVGKaiguan',
    'SVGCapacitance', // 电容1
    'SVGTriangle_capacitance', // 三角电容
    'SVGSeries_capacitance', // 串联电容
    'SVGPXI', // pxi仪表
    'SVGLineCross', // 交叉线
]

svgs.forEach(key => {
    Vue.component(key, () => import(`@/custom-component/svgs/${key}/Component`))
    Vue.component(key + 'Attr', () => import(`@/custom-component/svgs/${key}/Attr`))
})
